home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / More Source / C⁄C++ / mgraph / xgraph.h < prev   
Text File  |  1994-03-22  |  876b  |  41 lines

  1. /* Copyright 1994 Ralph Gonzalez */
  2.  
  3. /*
  4. *    FILE:        xgraph.h
  5. *    AUTHOR:        R. Gonzalez
  6. *    CREATED:    April 16, 1993
  7. *
  8. *    declarations for xgraph.c
  9. */
  10.  
  11. # define    BLACK        0
  12. # define    WHITE        1
  13. # define    RED             2
  14. # define    YELLOW         3
  15. # define    GREEN        4
  16. # define    BLUE        5
  17. # define    CYAN        6
  18. # define    MAGENTA        7
  19. typedef int    color;
  20.  
  21. # define    TRUE        1
  22. # define    FALSE        0
  23. typedef int    boolean;
  24.  
  25. void    init_graphics(void);
  26. double    get_screen_aspect_ratio(void);
  27. void    set_graphics_coords(double,double,double,double);
  28. void    pen_color(color);
  29. void    background_color(color);
  30. void    graphics_to_front(void); 
  31. void    erase_graphics(void);
  32. void    draw_line(double,double,double,double);    
  33. void    move_to(double,double);
  34. void    draw_to(double,double);
  35. void    draw_circle(double,double,double);    
  36. void    fill_circle(double,double,double);    
  37. boolean    mouse_button_is_down(void);
  38. void    wait(void);
  39. void    get_mouse_location(double*,double*);
  40.  
  41.